Port BUSACCESS - CAN¶
BluePiraT access to CAN
Stimulation¶
此端口支持 Stimulation control 中描述的所有功能。
Properties 🛈¶
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
Channel number |
‘1’ |
string |
当存在多个同类型控制器时,用于选择通道号。 |
||
Bus-DB |
string |
||||
Export format |
[ONLINE] |
string |
Save signal recordings in this format |
Jobs 🛈¶
ClearFrame¶
清除指定帧的接收缓冲区
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameId |
int |
Frame ID |
|||
isExtended |
None |
[False, True] |
bool |
地址格式:True 表示 29 位,False 表示 11 位,None 使用测试台架配置中的“Mode”设置 |
返回值
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
result |
ByteStream |
ByteStream |
DeregisterFrameForInbox¶
注销一个流式传输到收件箱的帧
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameId |
int |
Frame ID |
|||
Inbox |
object |
现有收件箱 |
|||
isExtended |
None |
[False, True] |
bool |
地址格式:True 表示 29 位,False 表示 11 位,None 使用测试台架配置中的“Mode”设置 |
GetFirstValue¶
返回自 test case 启动以来收到的信号的第一个值。
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameName |
string |
Frame name |
|||
NodeName |
string |
电子控制单元的名称 |
|||
RawValue |
False |
[False, True] |
bool |
如果为 ‘True’,则返回原始值。 |
|
Reset |
False |
[False, True] |
bool |
若为 ‘True’,则第一个接收到的值在被读取后将被删除 |
|
SignalName |
string |
信号名称 |
GetLastReceptionTimestamp¶
获取最后一次接收的时间戳(以秒为单位)
InitFrame¶
注册报文 ID 以供后续使用,例如 ReadFrame
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameId |
int |
Frame ID |
|||
isExtended |
None |
[False, True] |
bool |
地址格式:True 表示 29 位,False 表示 11 位,None 使用测试台架配置中的“Mode”设置 |
ReadFrame¶
读取指定的帧 ID(此前请先使用 InitFrame!)
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
doDelete |
False |
[False, True] |
bool |
若为 “True”,则在读取后删除该帧 |
|
FrameId |
int |
Frame ID |
|||
isExtended |
None |
[False, True] |
bool |
地址格式:True 表示 29 位,False 表示 11 位,None 使用测试台架配置中的“Mode”设置 |
返回值
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
result |
ByteStream |
ByteStream |
ReadFrameEx¶
读取指定的帧 ID(此前请先使用 InitFrame!)
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
doDelete |
False |
[False, True] |
bool |
若为 “True”,则在读取后删除该帧 |
|
FrameId |
int |
Frame ID |
|||
isExtended |
None |
[False, True] |
bool |
地址格式:True 表示 29 位,False 表示 11 位,None 使用测试台架配置中的“Mode”设置 |
返回值
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
result |
object |
CanFrame |
RegisterFrameForInbox¶
注册一个帧,以便将其流式传输到 Inbox。
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameId |
int |
Frame ID |
|||
Inbox |
object |
现有收件箱 |
|||
isExtended |
None |
[False, True] |
bool |
地址格式:True 表示 29 位,False 表示 11 位,None 使用测试台架配置中的“Mode”设置 |
|
saveAsCanFrame |
False |
[False, True] |
bool |
如果为 True,则该帧保存为 CanFrame 对象,否则保存为 ByteStream |
ResetFirstValue¶
清除给定信号的第一个已接收值
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameName |
string |
Frame name |
|||
NodeName |
string |
电子控制单元的名称 |
|||
SignalName |
string |
信号名称 |